<template>
    <Form :model="formItem">
        <FormItem >
            <Input v-model="formItem.textarea" type="textarea" :autosize="{minRows: 2,maxRows: 5}" placeholder="Enter something..."></Input>
        </FormItem>
        <FormItem>
            <Button @click="handleSubmit('formValidate')" type="primary">Submit</Button>
            <Button @click="handleReset('formValidate')" style="margin-left: 8px">Reset</Button>
        </FormItem>
    </Form>
</template>
<script>
export default {
  name: "noteform",
  data() {
    return {
      formItem: {
        textarea: ""
      }
    };
  },
  methods: {
    handleSubmit(textarea) {
    //   this.$refs[name].validate(valid => {
    //     if (valid) {
    //       this.$Message.success("Success!");
    //     } else {
    //       this.$Message.error("Fail!");
    //     }
    //   });
    },
    handleReset(textarea) {
    //   this.$refs[name].resetFields();
    }
  }
};
</script>